<template>
  <el-dialog title="批量倍率设置" :visible.sync="dialogVisible" append-to-body>
    <el-form>
      <el-form-item label="单位类型：">注册在高新区</el-form-item>
      <el-form-item label="抽取倍率：">
        <el-input-number size="mini" :min="1" v-model="multiNum" />
      </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button type="primary" @click="submit">确 定</el-button>
      <el-button @click="dialogVisible = false">取 消</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  props: ["visible", "setMulti"],
  computed: {
    dialogVisible: {
      get() {
        return this.visible;
      },
      set(value) {
        this.$emit("update:visible", value);
      },
    },
  },
  data() {
    return {
      multiNum: 1,
    };
  },
  methods: {
    submit() {
        this.setMulti(this.multiNum);
    }
  }
};
</script>

<style>
</style>